package com.ruoyi.generator.mapper;

import com.ruoyi.generator.entity.*;

import java.util.List;

/**
 * 业务字段 数据层
 * 
 * @author ruoyi
 */
public interface ContractMapper
{


    /**
     * 新增业务字段
     * 
     * @param Contract
     * @return 结果
     */
    public int insertContract(Contract Contract);

    List<Contract> selectContractList(ContractSearchCriteria criteria);


    Long getMaxId(); // 查询最大ID

    Contract selectContractByCode(String contractCode);


    int updateContractByCode(Contract contract);
    int editContractByCode(Contract contract);

    List<Customer> selectClientlist();

    int addReturnValue(StReturnValue stReturnValue);

    List<StReturnValue> queryReturnValue(String contractCode);

    void insertPayMsg(PaymentMsg paymentMsg);


    List<String> selectMonthByContractCode(String contractCode);

    List<String> selectActualByContractCode(String contractCode);

    List<String> selectAgreedByContractCode(String contractCode);

    void updatePayMsg(PaymentMsg paymentMsg);



    List<Contract> selectExecuteContractList();

    PaymentMsg selectContract(PaymentMsg paymentMsgN);

    List<StReturnValue> selectReturnValueByContractNumber(String contractCode);

    void deletePayMsg(String contractCode);

    List<PaymentMsg> selectPaymentMsgByContractCode(String contractCode);

    int editReturnValue(StReturnValue stReturnValue);

    ReturnvalHistory selectReturnvalHistoryByContractCode(String contractCode);

    void addReturnValueHistory(ReturnvalHistory returnvalHistory);

    void updateReturnvalHistoryByContractCode(ReturnvalHistory returnvalHistory);

    List<String> queryContractNumberByLike(String queryString);

    List<String> getMaxIdOfSupply(String contractCode);


//    String getMaxCustomerNumber();

//    Customer selectCustomerByCode(String code);







}
